package com.gree.scmservice.feign;

import com.gree.common.entity.ReturnVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "microservice-auth3")
public interface AuthServiceApiFeign {

    @GetMapping("/users/getonlineuser")
    Object getOnlineUser();

    @GetMapping("/users/getonlinecount")
    Object getOnlineCount();

    @DeleteMapping("/users/forcelogout/{tokenId}")
    ReturnVo forceLogout(@PathVariable("tokenId") String tokenId);

}
